package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class p_005ftrysong_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\r');
      out.write('\n');


	String num = request.getParameter("ringnum");
	String songName="";
	String songUrl = "http://localhost:8090/ysr/song/song";
	if (num != null )
	{
		if (num.equals("1"))
		{
			songName = "爱不是对不起";
			//songUrl = ""
		}
		if (num.equals("2"))
		{
			songName = "候鸟之城";
			//songUrl = ""
		}
		if (num.equals("3"))
		{
			songName = "无法防御";
			//songUrl = ""
		}
		if (num.equals("4"))
		{
			songName = "校园新主张";
			//songUrl = ""
		}
	}

      out.write("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("<HEAD><TITLE>MP3试听</TITLE>\r\n");
      out.write("<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\r\n");
      out.write("<STYLE type=text/css>\r\n");
      out.write(".prelrc{font-size:12px;margin-left:12px;color:#000000}\r\n");
      out.write(".nowlrc{font-weight:bold;font-size:12px;margin-left:12px;color:#ff5a00}\r\n");
      out.write("*{margin:0;padding:0}\r\n");
      out.write("body{background:#D7DFE6;background-image:url(http://imgs.zhangmen.baidu.com/imgs/bdbg.gif);background-repeat:repeat-x;margin:0;font-size:12px;font-family:SimSun}\r\n");
      out.write("img{border:0}\r\n");
      out.write("a{color:#00c}\r\n");
      out.write("#Head_div {height:60px;width:400px}\r\n");
      out.write("#Usr_div {float:right;margin:30px 20px 10px;width:350px}\r\n");
      out.write("#Usr_div {margin:30px 0 10px 20px;width:190px}\r\n");
      out.write("#Logo_div {margin:13px 0 10px 3px;width:145px;float:left;}\r\n");
      out.write("#Lrc_div {position:absolute;width:350px;height:100%;float:left;margin-top:-60px;margin-left:8px;}\r\n");
      out.write("#url_div {margin:30px 10px 22px 5px;width:350px}\r\n");
      out.write("#song_div {margin:5px 10px 5px 5px}\r\n");
      out.write("#S_div {background:#E0E6F7;border:1px solid #A0BACD;width:350px;margin-bottom:10px}\r\n");
      out.write("#SongNum_div {clear:both}\r\n");
      out.write("#plus_div {float:left;background:url(http://imgs.zhangmen.baidu.com/imgs/cd.gif) no-repeat 10px;padding:10px 30px;text-decoration:underline;color:blue;}\r\n");
      out.write("#next_div {float:right;background:url(http://imgs.zhangmen.baidu.com/imgs/next.gif) no-repeat 1px 10px;padding:10px 15px;text-decoration:underline;color:blue;}\r\n");
      out.write("#pre_div {float:right;background:url(http://imgs.zhangmen.baidu.com/imgs/pre.gif) no-repeat 1px 10px;padding:10px 15px;text-decoration:underline;color:blue;}\r\n");
      out.write("#InP_div {margin:2px;clear:both}\r\n");
      out.write("#arrowright_div {float:left;height:500px;width:10px;}\r\n");
      out.write("#arrowright_div img {position:absolute;top:85px;left:0;cursor:pointer;}\r\n");
      out.write("#rightIfrm_div {float:left;width:420px;margin-top:-60px}\r\n");
      out.write("#MngIfrm_div {}\r\n");
      out.write("#leftAd_div {width:350px;float:left;margin-left:10px;margin-top:420px;}\r\n");
      out.write("</STYLE>\r\n");
      out.write("</HEAD>\r\n");
      out.write("\r\n");
      out.write("<div id=\"song_div\">歌曲试听：<b>");
      out.print(songName);
      out.write("   ... </b></div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<object id=\"MediaPlayer1\" width=\"350\" height=\"68\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" \r\n");
      out.write("codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715\" \r\n");
      out.write("align=\"baseline\" border=\"0\" standby=\"Loading Microsoft Windows Media Player components...\" \r\n");
      out.write("type=\"application/x-oleobject\">\r\n");
      out.write("    <param name=\"invokeURLs\" value=\"0\">\r\n");
      out.write("    <param name=\"FileName\" value=\"");
      out.print(songUrl+num);
      out.write(".mp3\">\r\n");
      out.write("    <param name=\"ShowControls\" value=\"1\">\r\n");
      out.write("    <param name=\"ShowPositionControls\" value=\"0\">\r\n");
      out.write("    <param name=\"ShowAudioControls\" value=\"1\">\r\n");
      out.write("    <param name=\"ShowTracker\" value=\"1\">\r\n");
      out.write("    <param name=\"ShowDisplay\" value=\"0\">\r\n");
      out.write("    <param name=\"ShowStatusBar\" value=\"1\">\r\n");
      out.write("    <param name=\"AutoSize\" value=\"0\">\r\n");
      out.write("    <param name=\"ShowGotoBar\" value=\"0\">\r\n");
      out.write("    <param name=\"ShowCaptioning\" value=\"0\">\r\n");
      out.write("    <param name=\"AutoStart\" value=\"1\">\r\n");
      out.write("    <param name=\"PlayCount\" value=\"0\">\r\n");
      out.write("    <param name=\"AnimationAtStart\" value=\"0\">\r\n");
      out.write("    <param name=\"TransparentAtStart\" value=\"0\">\r\n");
      out.write("    <param name=\"AllowScan\" value=\"0\">\r\n");
      out.write("    <param name=\"EnableContextMenu\" value=\"1\">\r\n");
      out.write("    <param name=\"ClickToPlay\" value=\"0\">\r\n");
      out.write("    <param name=\"DefaultFrame\" value=\"datawindow\">\r\n");
      out.write("\r\n");
      out.write("    <embed src=\"");
      out.print(songUrl+num);
      out.write(".mp3\" align=\"baseline\" border=\"0\" width=\"350\" height=\"68\"\r\n");
      out.write("        type=\"application/x-mplayer2\"\r\n");
      out.write("        pluginspage=\"http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp;\"\r\n");
      out.write("        name=\"MediaPlayer\" showcontrols=\"1\" showpositioncontrols=\"0\"\r\n");
      out.write("        showaudiocontrols=\"1\" showtracker=\"1\" showdisplay=\"0\"\r\n");
      out.write("        showstatusbar=\"1\"\r\n");
      out.write("        autosize=\"0\"\r\n");
      out.write("        showgotobar=\"0\" showcaptioning=\"0\" autostart=\"1\" autorewind=\"0\"\r\n");
      out.write("        animationatstart=\"0\" transparentatstart=\"0\" allowscan=\"1\"\r\n");
      out.write("        enablecontextmenu=\"1\" clicktoplay=\"0\" \r\n");
      out.write("        defaultframe=\"datawindow\" invokeurls=\"0\">\r\n");
      out.write("    </embed>\r\n");
      out.write("</object>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("</BODY>\r\n");
      out.write("</HTML>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
